//
//  DrawSuccessViewController.m
//  MagicZhao
//
//  Created by hy002 on 2017/12/11.
//  Copyright © 2017年 HUAYU. All rights reserved.
//

#import "DrawSuccessViewController.h"

@interface DrawSuccessViewController ()

@end

@implementation DrawSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatUI];
}

- (void)creatUI
{
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.title = _titStr;
    self.navigationController.navigationBar.translucent = NO;
    UIImageView *imgView = [ZCControl createImageViewWithFrame:CGRectMake(SCREEN_WIDTH/2-45*displaywidth, 45*displaywidth, 90*displaywidth, 90*displaywidth) ImageName:@"chengg"];
    imgView.contentMode = UIViewContentModeScaleAspectFit;
    [self.view addSubview:imgView];
    
    UILabel *tostLab = [ZCControl createLabelWithFrame:CGRectMake(0, 165*displaywidth, SCREEN_WIDTH, 30*displaywidth) Font:16.0 Text:_tostStr  Color:ThemeColor];
    tostLab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:tostLab];
    
    UIButton *soureBtn = [ZCControl createButtonWithFrame:CGRectMake(60*displaywidth , 235*displaywidth, SCREEN_WIDTH-120*displaywidth, 45*displaywidth) ImageName:nil Target:self Action:@selector(soureAction) Title:@"确定" Font:15.0];
    [soureBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    soureBtn.backgroundColor = ThemeColor;
    [soureBtn.layer setMasksToBounds:YES];
    [soureBtn.layer setCornerRadius:5*displaywidth];
    [self.view addSubview:soureBtn];
}

- (void)soureAction
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
